{% if pagename == "index" or pagename == "search" or pagename == "tutorials" or pagename == "documentation" or pagename == "examples" or pagename == "guides" %}
<!-- Learn astropy banner -->
<div class="container-fluid landing text-center">
  <a href="/"><img src="_static/astropy_logo_banner.png" id="astropy-logo"></a>
  <form class="input-group col-sm-7 m-auto"  id="search-bar" action="{{ pathto('search') }}" method="get">
      <div class="input-group-prepend">
          <button class="input-group-text" type="submit"><i class="fa fa-search fa-fw"></i></button>
      </div>
      <input type="text" name="q" id="search-bar-input" class="form-control" placeholder="Search the universe of Astropy" />
  </form>
</div>

<!-- Guides, Tutorials, Examples, Documentation Placards -->
<div class="container-fluid row definition-cards">
  <div class="card bg-guide col-md-3 col-lg-2 p-0 m-2  ml-auto enable-guides">
    <div class="card-body">
      <h2 class="card-title text-center"><a href="{{ pathto('guides') }}" class="text-white">Guides</a></h2>
      <p class="card-text text-center">Guides are comprehensive, conceptually-focused documents providing stand-alone introductions to core packages in addition to the underlying astronomical concepts.</p>
    </div>
  </div>
  <div class="card bg-tutorial col-md-3 col-lg-2 p-0 m-2 ml-auto">
    <div class="card-body">
        <h2 class="card-title text-center"><a href="tutorials.html" class="text-white">Tutorials</a></h2>
      <p class="card-text text-center">Tutorials are step-by-step cookbooks for common activities that incorporate several packages. They are more specific and less conceptual than Guides but more extended than Examples.</p>
    </div>
  </div>
  <div class="card bg-documentation col-md-3 col-lg-2 p-0 m-2">
    <div class="card-body">
        <h2 class="card-title text-center" style="margin-left: -20px; margin-right: -20px;"><a href="{{ pathto('documentation') }}" class="text-white">Documentation</a></h2>
      <p class="card-text text-center">Documentation is the complete description of a package with all requisite details, including usage, dependencies, and examples.</p>
    </div>
  </div>
  <div class="card bg-example col-md-3 col-lg-2 p-0 m-2 mr-auto">
    <div class="card-body">
        <h2 class="card-title text-center"><a href="{{ pathto('examples') }}" class="text-white">Examples</a></h2>
      <p class="card-text text-center">Examples are stand-alone code snippets that live in the astropy documentation that demonstrate a specific functionality within a package.</p>
    </div>
  </div>
</div>

{% else %}
<nav class="navbar navbar-expand-lg bg-navbar">
  <a class="navbar-brand" href="/" style="padding: 0px 5px;">
    <img src="{{ pathto('../_static/' + 'astropy_logo.png', 1) }}" onerror="this.onerror=null;this.src='{{ pathto("_static/" + "astropy_logo.png", 1) }}';" style="height: 38px;">
  </a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarColor01">
    <ul class="navbar-nav ml-auto">
      <li class="nav-item active">
        <a class="nav-link" href="http://www.astropy.org"/>Astropy<span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Modules</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0" action="{{ pathto('search') }}" method="get">
      <div class="input-group-prepend">
          <button class="input-group-text" style="padding: 0.7rem"><i class="fa fa-search fa-fw"></i></button>
      </div>
      <input class="form-control mr-sm-3" name="q" type="text" placeholder="Search the universe" />
    </form>
  </div>
</nav>
{% endif %}
